package com.cogent.dynamicform.expression.impl;

import java.util.HashMap;

import com.cogent.common.util.MapUtil;
import com.cogent.dynamicform.expression.IBoolExpression;

public class EqulHtBoolExpression implements IBoolExpression {	
	
	public boolean doJudge(String expression, HashMap valMap) {
		boolean flag = false;
		String[] temps = expression.split("\\|");
		String curValue = MapUtil.getStringValue(valMap, temps[1]);
		String[] curtemps = temps[2].split(",");
		for(int i=0; i<curtemps.length; i++) {
			if(curValue.equals(curtemps[i]))
				return true;
		}
		return flag;
	}
}
